home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVAOPEN.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  34 lines

  1. /*================================================*/
  2. /* TVAOPEN.C                                      */
  3. /*                                                */
  4. /* (c) Copyright 1988 Ralf Brown                  */
  5. /*     All Rights Reserved                        */
  6. /* May be freely copied for noncommercial use,    */
  7. /* provided that this copyright notice remains    */
  8. /* intact and any changes are indicated in the    */
  9. /* comment blocks preceding functions             */
  10. /*================================================*/
  11.  
  12. #include <string.h>
  13. #include "tvapi.h"
  14.  
  15. /*================================================*/
  16. /* TVpanel_open   associate a file with panel obj */
  17. /*   Ralf Brown 5/6/88                            */
  18. /*================================================*/
  19.  
  20. void pascal TVpanel_open(OBJECT panel, char *file)
  21. {
  22.    PARMLIST2 p ;
  23.  
  24.    if (TVisobj(panel))
  25.       {
  26.       p.num_args = 2 ;
  27.       p.arg[0] = (DWORD) (char far *) file ;
  28.       p.arg[1] = (DWORD) strlen(file) ;
  29.       TVsendmsg(OPEN_MSG, TOS, panel, (PARMLIST *)&p) ;
  30.       }
  31. }
  32.  
  33. /* End of TVAOPEN.C */
  34.